package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @date 2018/1/15 0015
 * @auther itchenqi
 * @description 系统配置内容
 */
public class SystemConfigEntity implements Parcelable {

    //这里要重新学习
//    @JSONField(name = "key")
    private String key;

    //    @JSONField(name = "value")
    private String value;


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.key);
        dest.writeString(this.value);
    }

    public SystemConfigEntity() {
    }

    protected SystemConfigEntity(Parcel in) {
        this.key = in.readString();
        this.value = in.readString();
    }

    public static final Creator<SystemConfigEntity> CREATOR = new Creator<SystemConfigEntity>() {
        @Override
        public SystemConfigEntity createFromParcel(Parcel source) {
            return new SystemConfigEntity(source);
        }

        @Override
        public SystemConfigEntity[] newArray(int size) {
            return new SystemConfigEntity[size];
        }
    };

    @Override
    public String toString() {
        return "SystemConfigEntity{" +
                "key='" + key + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
}
